StringTable Resource

The STRINGTABLE statement defines one or more string resources for an application. String resources are simply null-terminated strings that can be loaded when needed from the executable file, using the LoadString function.

Syntax

STRINGTABLE [load-mem]
   [optional-statements]
   BEGIN
      stringID string
      . . .
   END

Parameters

load-mem

Specifies loading and memory attributes for the resource.

optional-statements

Zero or more of the following statements:

Statement

Description

CHARACTERISTICS dword

User-defined information about a resource that can be used by tools that read and write resource files.

LANGUAGE language, sublanguage

Specifies the language for the resource.

VERSION dword

User-defined version number for the resource that can be used by tools that read and write resource files.

stringID

Specifies an unsigned 16-bit integer that identifies the resource.

string

Specifies one or more strings, enclosed in double quotation marks. The string must be no longer than 4097 characters and must occupy a single line in the source file.

Remarks

Grouping strings in separate sections allows all related strings to be read in at one time and discarded together. When possible, an application should make the table movable and discardable. RC allocates 16 strings per section and uses the identifier value to determine which section is to contain the string. Strings with the same upper-12 bits in their identifiers are placed in the same section.